namespace Sustainalytics.Portfolios.BL
{
    using System;

    using Sustainalytics.Entities;
    using Sustainalytics.Utils;

    public class SystemPortfolioBuilder
    {
        public static AutomaticSystemPortfolio CreateNew(Guid id, string name, Guid[] accountIds)
        {
            return new AutomaticSystemPortfolio(id, name, accountIds);
        }

        public static ManualSystemPortfolio CreateNew(string name, PortfolioUserClaims claims)
        {
            return new ManualSystemPortfolio(
                name,
                claims.AccountId,
                claims.UserId,
                claims.UserName,
                claims.UserFullName);
        }
    }
}